import { createRouter, createWebHashHistory } from 'vue-router'

var routes = [
    {
        path: "/",
        component: () => import('../page/index/log.vue')
    }, {
        path: "/pages/index/dervice",
        component: () => import('../page/index/dervice.vue')
    }, {
        path: "/pages/index/config",
        component: () => import('../page/index/config.vue')
    }, {
        path: "/pages/index/error",
        component: () => import('../page/index/error.vue')
    }, {
        path: "/pages/index/error-info",
        component: () => import('../page/index/error-info.vue')
    }, {
        path: "/pages/index/file",
        component: () => import('../page/index/file.vue')
    },
]

const router = createRouter({
    // history: createWebHistory(),
    // base: process.env.NODE_ENV === "production" ? "/log/" : "/",
    history: createWebHashHistory(),
    routes
})

export default router